import axios from './http.js'
// import _ from "lodash";
// import qs from 'qs';

// 桌面操作
export function login(data, config) {
  const url = '/cs/channel/login'

  data = data || {}
  // config = config || {headers: { 'content-type': 'application/x-www-form-urlencoded' , isLogin: false}};
  config = config || { headers: { isLogin: false }}
  // data = qs.stringify(data);
  return axios.post(url, data, config)
}

export function logout(data, config) {
  const url = '/auth/uni_logout'
  data = data || {}
  config = config || {}
  return axios.post(url, data, config)
}
